package com.xinghai.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xinghai.common.annotation.Excel;
import com.xinghai.common.core.domain.BaseEntity;

/**
 * 用车耗材明细对象 xh_vehicle_info_material
 * 
 * @author smy
 * @date 2024-07-25
 */
public class XhVehicleInfoMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    //耗材类型各类型参数匹配（明细类型-type;字典-material_type"）
    //    需求人耗材明细-0
    //    device：发货设备
    //    size：尺寸
    //    unit：单位
    //    count:数量

    //    装车人耗材明细-1
    //    device：发货设备
    //    unit：单位
    //    count:发货数量

    //    自制设备明细-2
    //    device：品名
    //    size：规格
    //    count:发货数量
    //    unit:占整车比率

    //    品质损失明细-3
    //    device：物料名称
    //    size：型号
    //    count:数量
    //    unit:金额

    /** id */
    private Long id;

    /** 用车任务id */
    @Excel(name = "用车任务id")
    private Long vehicleId;

    /** 明细类型;字典-material_type */
    @Excel(name = "明细类型;字典-material_type")
    private String type;

    /** 发货设备 */
    @Excel(name = "发货设备")
    private String device;

    /** 发货数量 */
    @Excel(name = "发货数量")
    private String count;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 尺寸 */
    @Excel(name = "尺寸")
    private String size;

    /** 删除标识;删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVehicleId(Long vehicleId) 
    {
        this.vehicleId = vehicleId;
    }

    public Long getVehicleId() 
    {
        return vehicleId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDevice(String device) 
    {
        this.device = device;
    }

    public String getDevice() 
    {
        return device;
    }
    public void setCount(String count) 
    {
        this.count = count;
    }

    public String getCount() 
    {
        return count;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setSize(String size) 
    {
        this.size = size;
    }

    public String getSize() 
    {
        return size;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("vehicleId", getVehicleId())
            .append("type", getType())
            .append("device", getDevice())
            .append("count", getCount())
            .append("unit", getUnit())
            .append("size", getSize())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
